//
//  ZDBFeedbackCollectionViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/29.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBFeedbackCollectionViewCell.h"

@implementation ZDBFeedbackCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self =  [super initWithFrame:frame];
    if (self) {
       self.backgroundColor =  VIEWBGCOLOR;
        [self get_up];
    }
    return self;
}
- (void)get_up
{
    [self.contentView addSubview:self.icon];
    [self.contentView addSubview:self.deleteBtn];
}
- (UIImageView *)icon
{
    if (!_icon) {
        _icon = [[UIImageView alloc] initWithFrame:CGRectMake(3, 3, 44, 44)];
    }
    return _icon;
}
-(UIButton *)deleteBtn
{
    if (!_deleteBtn) {
        _deleteBtn = [[UIButton alloc] initWithFrame:CGRectMake(50-18, 0, 18, 18)];
        [_deleteBtn setImage:[UIImage imageNamed:@"cancelPhoto"] forState:0];
    }
    return _deleteBtn;
}
@end
